package com.iot.websocket.message;

import com.alibaba.fastjson.JSONObject;
import com.iot.common.enums.BizCode;
import com.iot.websocket.Topic;
import com.iot.websocket.WebSocketMessage;

/**
 * 终端配置信息变更消息
 */
public class ConfigChangeMessage extends WebSocketMessage {

    private String clientNo;

    public ConfigChangeMessage() {
        this.setBizCode(BizCode.COMMON.getCode());
    }

    public static ConfigChangeMessage getInstance(String topic, String clientNo, JSONObject data){
        ConfigChangeMessage instance = new ConfigChangeMessage();
        instance.clientNo = clientNo;
        instance.setTopic(topic);
        instance.setData(data);
        return instance;
    }

    public String getClientNo() {
        return this.clientNo;
    }
}
